// pages/subject/subject.js
Page({
  data: {
    list: [
      {
        title: '爱情',
        imgUrl: '/assets/image/aiqing.png'
      },
      {
        title: '动画',
        imgUrl: '/assets/image/donghua.png'
      },
      {
        title: '动作',
        imgUrl: '/assets/image/dongzuo.png'
      },
      {
        title: '喜剧',
        imgUrl: '/assets/image/xiju.png'
      },
      {
        title: '科幻',
        imgUrl: '/assets/image/kehuan.png'
      }
    ]
  },
  onLoad: function (options) {
    
  },
  goToList (e) {
    wx.navigateTo({
      url: `/pages/subject-list/subject-list?type=${e.currentTarget.dataset.type}`,
    })
  }
})